// import { list } from '../controllers/cate.controllers';

var express = require('express');
var router = express.Router();
var dataCtrl = require('../controllers/cate.controllers');

router.post('/data',dataCtrl.create);
router.put('/data/:id',dataCtrl.update);
router.get('/list/:type',dataCtrl.list);
router.delete('/data/:id',dataCtrl.remove);



// router.put('/data/:id',dataCtrl.update);
// router.delete('/data/:id',dataCtrl.remove);
// router.post('/list',dataCtrl.list);


module.exports = router;
